package com.aspose.cells;

class zbhg extends zck {
   zbhg(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = var1.f();
      float var3 = var1.g();
      float var4 = var1.h();
      float var5 = var1.i();
      float var6 = 0.0F;
      float var7 = 0.0F;
      float var8 = 0.0F;
      float var9 = Math.min(var4, var5);
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            var6 = var9 * (com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 100000.0F);
            var7 = var9 * com.aspose.cells.b.a.ze.a(this.e.m.a.get(1)) / 100000.0F;
            var8 = var9 * com.aspose.cells.b.a.ze.a(this.e.m.a.get(2)) / 100000.0F;
         } else {
            var6 = var9 * 0.25F;
            var7 = var9 * 0.25F;
            var8 = var9 * 0.25F;
         }
      } else {
         var6 = var9 * 0.25F;
         var7 = var9 * 0.25F;
         var8 = var9 * 0.25F;
      }

      com.aspose.cells.b.a.b.a.ze var10 = new com.aspose.cells.b.a.b.a.ze();
      float var11 = var7 - var6 / 2.0F;
      com.aspose.cells.b.a.b.zo[] var12 = new com.aspose.cells.b.a.b.zo[12];
      switch(this.e.b) {
      case 1:
         var12[0] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - 2.0F * var7), var3 + var8);
         var12[1] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - var7), var3);
         var12[2] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var8);
         var12[3] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - var11), var3 + var8);
         var12[4] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - var11), var3 + (var5 - var11));
         var12[5] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + (var5 - var11));
         var12[6] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var5);
         var12[7] = new com.aspose.cells.b.a.b.zo(var2, var3 + (var5 - var7));
         var12[8] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + (var5 - 2.0F * var7));
         var12[9] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var5 - 2.0F * var7 + var11);
         var12[10] = new com.aspose.cells.b.a.b.zo(var2 + var4 - 2.0F * var7 + var11, var3 + var5 - 2.0F * var7 + var11);
         var12[11] = new com.aspose.cells.b.a.b.zo(var2 + var4 - 2.0F * var7 + var11, var3 + var8);
         break;
      case 2:
         var12[0] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - 2.0F * var7), var3 + var5 - var8);
         var12[1] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - var7), var3 + var5);
         var12[2] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var5 - var8);
         var12[3] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - var11), var3 + var5 - var8);
         var12[4] = new com.aspose.cells.b.a.b.zo(var2 + (var4 - var11), var3 + var11);
         var12[5] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var11);
         var12[6] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3);
         var12[7] = new com.aspose.cells.b.a.b.zo(var2, var3 + var7);
         var12[8] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + 2.0F * var7);
         var12[9] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + 2.0F * var7 - var11);
         var12[10] = new com.aspose.cells.b.a.b.zo(var2 + var4 - 2.0F * var7 + var11, var3 + 2.0F * var7 - var11);
         var12[11] = new com.aspose.cells.b.a.b.zo(var2 + var4 - 2.0F * var7 + var11, var3 + var5 - var8);
         break;
      case 3:
         var12[0] = new com.aspose.cells.b.a.b.zo(var2 + 2.0F * var7, var3 + var5 - var8);
         var12[1] = new com.aspose.cells.b.a.b.zo(var2 + var7, var3 + var5);
         var12[2] = new com.aspose.cells.b.a.b.zo(var2, var3 + var5 - var8);
         var12[3] = new com.aspose.cells.b.a.b.zo(var2 + var11, var3 + var5 - var8);
         var12[4] = new com.aspose.cells.b.a.b.zo(var2 + var11, var3 + var11);
         var12[5] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var8, var3 + var11);
         var12[6] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var8, var3);
         var12[7] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var7);
         var12[8] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var8, var3 + 2.0F * var7);
         var12[9] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var8, var3 + 2.0F * var7 - var11);
         var12[10] = new com.aspose.cells.b.a.b.zo(var2 + 2.0F * var7 - var11, var3 + 2.0F * var7 - var11);
         var12[11] = new com.aspose.cells.b.a.b.zo(var2 + 2.0F * var7 - var11, var3 + var5 - var8);
         break;
      case 4:
         var12[0] = new com.aspose.cells.b.a.b.zo(var2 + 2.0F * var7, var3 + var8);
         var12[1] = new com.aspose.cells.b.a.b.zo(var2 + var7, var3);
         var12[2] = new com.aspose.cells.b.a.b.zo(var2, var3 + var8);
         var12[3] = new com.aspose.cells.b.a.b.zo(var2 + var11, var3 + var8);
         var12[4] = new com.aspose.cells.b.a.b.zo(var2 + var11, var3 + var5 - var11);
         var12[5] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var8, var3 + var5 - var11);
         var12[6] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var8, var3 + var5);
         var12[7] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var5 - var7);
         var12[8] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var8, var3 + var5 - 2.0F * var7);
         var12[9] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var8, var3 + var5 - 2.0F * var7 + var11);
         var12[10] = new com.aspose.cells.b.a.b.zo(var2 + 2.0F * var7 - var11, var3 + var5 - 2.0F * var7 + var11);
         var12[11] = new com.aspose.cells.b.a.b.zo(var2 + 2.0F * var7 - var11, var3 + var8);
      }

      var10.b(var12);
      return var10;
   }
}
